package com.yukino.service.impl;

import com.yukino.pojo.Dept;
import com.yukino.service.DeptService;
import com.yukino.mapper.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    /**
     * 查询部门名
     */
    public List<String> queryDeptName() {
        List<String> list = new ArrayList<>();
        deptMapper.selectList(null).forEach((i) -> list.add(i.getDept_name()));
        return list;
    }
}




